
/**
 * Write a description of class Voter here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Voter implements Comparable
{
    String name, idNum;
    
    public Voter(String i, String p)
    {
        name = i;
        idNum = p;
    }

    public String getName(){
        return name;
    }
    
    public String getID(){
        return idNum;
    }
    
    public int compareTo(Object o){
        Voter v = (Voter) o;
        return idNum.compareTo(v.getID());
    }
    
    public boolean equals(Object o){
        Voter v = (Voter) o;
        return (name.equals(v.getName()) && idNum.equals(v.getID()));
    }
}
